package com.ts.api.module.channel.service.impl;

import com.ts.api.module.channel.dao.ChannelDao;
import com.ts.api.module.channel.entity.po.ChannelPO;
import com.ts.api.module.channel.service.ChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 *  分配代理链接
 */
@Service
public class ChannelServiceImpl implements ChannelService {

    @Autowired
    private ChannelDao channelDao;

    @Override
    @Transactional(readOnly = true)
    public ChannelPO get(Long id) {
        return null;
    }

    @Override
    @Transactional(readOnly = true)
    public ChannelPO getByUniqueCode(String uniqueCode) {
        return channelDao.getByUniqueCode(uniqueCode);
    }

    @Override
    @Transactional(readOnly = true)
    public int countByUniqueCode(String uniqueCode) {
        return channelDao.countByUniqueCode(uniqueCode);
    }

}
